import request from '@/utils/request'

// 查询部门风场对应关系列表
export function listDeptFarmMapping(query) {
  return request({
    url: '/deptFarmMapping/deptFarmMapping/list',
    method: 'get',
    params: query
  })
}

// 查询部门风场对应关系详细
export function getDeptFarmMapping(id) {
  return request({
    url: '/deptFarmMapping/deptFarmMapping/' + id,
    method: 'get'
  })
}

// 新增部门风场对应关系
export function addDeptFarmMapping(data) {
  return request({
    url: '/deptFarmMapping/deptFarmMapping',
    method: 'post',
    data: data
  })
}

// 修改部门风场对应关系
export function updateDeptFarmMapping(data) {
  return request({
    url: '/deptFarmMapping/deptFarmMapping',
    method: 'put',
    data: data
  })
}

// 删除部门风场对应关系
export function delDeptFarmMapping(id) {
  return request({
    url: '/deptFarmMapping/deptFarmMapping/' + id,
    method: 'delete'
  })
}
